package com.ymj.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "ymj")
public class YmjProperties {
    private String uploadPath;
    private String tempPath;
    private Map<String, PhotoSize> photoSizes;

    @Data
    public static class PhotoSize {
        private int width;
        private int height;
        private String label;
    }
} 